package com.ia.aistream.model.operating.dto.convert;

import com.ia.aistream.common.utils.StringUtils;

/***
 *  表示机组、系统、加设备
 * @author XiaoYu
 */
public class SystemEquInfo {

    /** 机组 */
    private String crew;
    /** 系统 */
    private String system;
    /** 设备编码 */
    private String equip;
    /** 部件号 */
    private String component;

    public String getCrew() {
        return crew;
    }

    public void setCrew(String crew) {
        this.crew = crew;
    }

    public String getSystem() {
        return system;
    }

    public void setSystem(String system) {
        this.system = system;
    }

    public String getEquip() {
        return equip;
    }

    public void setEquip(String equip) {
        this.equip = equip;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    @Override
    public String toString() {
        String msg = "";
        if (!StringUtils.isEmpty(crew)){
            msg += crew;
        }
        if (!StringUtils.isEmpty(system)){
            msg += system;
        }
        if (!StringUtils.isEmpty(equip)){
            msg += equip;
        }
        if (!StringUtils.isEmpty(component)){
            msg += component;
        }

        return msg;
    }
}
